import { axios } from '@/utils/request'
export function getTablePage(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/pageQueryEnterpriseStaffLeave',
    method: 'post',
    data: parameter
  })
}
export function getQuitExport(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/exportEnterpriseStaffLeave',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function staffLeaveCancel(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/staffLeaveCancel',
    method: 'post',
    data: parameter
  })
}
export function downloadEnterpriseStaffLeaveTemplate() {
  return axios({
    url: '/sys/hr/enterprise/staff/downloadEnterpriseStaffLeaveTemplate',
    method: 'get',
    responseType: 'blob'
  })
}
export function importEnterpriseStaffLeave(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/importEnterpriseStaffLeave',
    method: 'post',
    data: parameter
  })
}
